<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>user list page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type="text/javascript" src="./js/validator.js"></script>
</head>
<body>
	<div class="modal-header" border-radius=5;>
		<button type="button" class="close" data-dismiss="modal"
			aria-hidden="true">&times;</button>
		<h4 class="modal-title" id="myModalLabel">新增参数信息</h4>
	</div>
	<div class="modal-body">

		<form action="addparinfo.action" method="post"
			onSubmit="return Validator.Validate(this,3)">
			<table width="500" align="center">

				<%--      <tr height="26px">  
             <!--    <td width="150px" align="right">ParinfoID</td>   -->
            <!--     <td width="350px">   -->
                    <input type="text"  name="parinfo.parinfoid" value="${parinfo.parinfoid}"/>  
                </td>  
            </tr>  --%>
				<tr height="26px">
				
					<td width="150px" align="right"><label>参数名称</label><span
						class="required">* &nbsp; </span></td>
					<td width="350px">
					
					<input type="text" placeholder="输入参数名称..." class="form-control"
						name="parinfo.parinfoname" value="" dataType="Require"
						msg="输入不能为空" />
					</td>
				</tr>
				<tr height="26px">
					<td width="150px" align="right"><label>参数值</label><span
						class="required">* &nbsp; </span></td>
					<td width="350px"><input type="text" placeholder="输入参数值..." class="form-control"
						name="parinfo.parinfovalue" value="" />
					</td>
				</tr>
				<%-- <tr height="26px">  
                <td width="150px" align="right">SupParinfoID</td>  
                <td width="350px">  
                  
                    <input type="text"  name="parinfo.supparinfoid" value=""/>  
                </td>  
            </tr>  --%>
				<tr height="26px">
					<td width="150px" align="right"><label>参数类型</label><span
						class="required">* &nbsp; </span></td>
					<td width="350px">
						<%--                                    <select name="parinfo.parinfoid">
   <option value="">
   </option>
   <c:forEach var="parinfo" items="${parinfos}" >
   <option value=${parinfo.parinfoid }>${parinfo.parinfoname}</option>
   </c:forEach>
  </select> --%> <input type="text" placeholder="输入参数类型..." class="form-control"name="parinfo.supparinfoname"
						value="" />
				</tr>

				<!-- <tr height="26px">
					<td colspan="2" align="center" width="500"><input
						type="submit" value="提交" /> <input type="button" value="返回"
						onclick="window.history.back(-1)" /></td>
				</tr> -->
			</table>
			<div class="modal-footer">
				<button type="button" class="btn btn-default btn-sm"
					data-dismiss="modal">关闭</button>
				<button type="submit" class="btn btn-primary btn-sm">提交更改</button>
			</div>
		</form>
	</div>
</body>
</html>
